﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true"
    CodeBehind="FindKontrakt.aspx.cs" Inherits="ASP_klient.WebForm2" %>

<asp:Content ID="HeadContentFindKontrakt" ContentPlaceHolderID="head" runat="server">
    </asp:Content>


<asp:Content ID="BodyContentFindKontrakt" ContentPlaceHolderID="MainContent" runat="server">
    <h2> Kontrakt-oplysninger. </h2>
    <asp:GridView ID="gvKontrakter" runat="server" AllowPaging="True" 
        AutoGenerateColumns="False" BackColor="White" BorderColor="#E7E7FF" 
        BorderStyle="None" BorderWidth="1px" CellPadding="3" 
        DataSourceID="ObjectDataSourceKontrakt" GridLines="Horizontal" Height="250px" 
        onselectedindexchanged="GridView1_SelectedIndexChanged" 
        ShowHeaderWhenEmpty="True" Width="900px">
        <AlternatingRowStyle BackColor="#F7F7F7" />
        <Columns>
            <asp:BoundField DataField="KontraktNummer" HeaderText="KontraktNummer" 
                SortExpression="KontraktNummer" />
            <asp:BoundField DataField="Kontrakttype" HeaderText="Kontrakttype" 
                SortExpression="Kontrakttype" />
            <asp:BoundField DataField="Timeløn" HeaderText="Timeløn" 
                SortExpression="Timeløn" />
        </Columns>
        <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
        <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
        <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
        <SortedAscendingCellStyle BackColor="#F4F4FD" />
        <SortedAscendingHeaderStyle BackColor="#5A4C9D" />
        <SortedDescendingCellStyle BackColor="#D8D8F0" />
        <SortedDescendingHeaderStyle BackColor="#3E3277" />
    </asp:GridView>
    <asp:ObjectDataSource ID="ObjectDataSourceKontrakt" runat="server" 
        SelectMethod="VisKontrakter" 
        TypeName="ASP_klient.WilkeServiceRef.WilkeServiceClient">
    </asp:ObjectDataSource>
    <br />

    Dobbeltklik på den ønskede Kontrakt for redigering.<br />
    
    <br />
</asp:Content>